package eg.ci.mvn.service.core.config.threadpool;


import lombok.extern.slf4j.Slf4j;
import org.dromara.dynamictp.core.spring.EnableDynamicTp;
import org.springframework.context.annotation.Configuration;

@Slf4j
@EnableDynamicTp
@Configuration
public class ThreadPoolConfiguration {
//
//    /**
//     * 通过{@link DynamicTp} 注解定义普通线程池，会享受到该框架增强能力，注解名称优先级高于方法名
//     *
//     * @return 线程池实例
//     */
//    @DynamicTp(MqTestRabbitFactory.BEAN_NAME_RABBIT_TASK_EXECUTOR)
//    @Bean
//    public ThreadPoolExecutor testMqThreadPoolExecutor() {
//        return (ThreadPoolExecutor) Executors.newFixedThreadPool(1);
//    }
}
